﻿@model PagedList<LTSMZ.life.Model.Member>
           @using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "MemberShow";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="~/Content/BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />
<script src="~/Content/BootstrapSouce/js/jquery.min.js"></script>
<script src="~/Content/BootstrapSouce/js/bootstrap.min.js"></script>
<h2>MemberShow</h2>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">
            会员列表展示
        </h3>
    </div>
    <div class="panel-body">
        <table class="table table-bordered table-hover" id="table1">
            <tr>
                <td>会员编号</td>
                <td>会员账号</td>
                <td>会员密码</td>
                <td>昵称</td>
                <td>真实姓名</td>
                <td>性别</td>
                <td>手机号</td>
            </tr>
            @foreach (var i in Model)
            {
                <tr>
                    <td>@i.Mid</td>
                    <td>@i.Mname</td>
                    <td>@i.Mpassword</td>
                    <td>@i.NickName</td>
                    <td>@i.RealName</td>
                    <td>@i.Sex</td>
                    <td>@i.Tel</td>
                    <td><a style="text-decoration:none" href="/Member/DelMember/@i.Mid" onclick="return confirm('确定要删除吗？')" class="glyphicon glyphicon-trash"></a></td>
                </tr>
            }
        </table>
    </div>
</div>
@Html.Pager(Model, new PagerOptions { PageIndexParameterName="pageIndex"})